DC():PrintDebug(" *** Opening mysql.lua ***");

DC():PrintDebug(" *** Checking for luasql ***");
--();

if not luasql then
--	DC():PrintDebug(" *** No previous luasql ***");
	DC():PrintDebug(" *** Checking for loadlib ***");

	if loadlib then

		local libname = "luasql_20b_MySQL_41.dll"
--		local libname = "MySQL.dll"
		local libopen = "luasql_libopen_mysql"

		DC():PrintDebug(" *** Attempting to load MySQL library ***");

		local init, err1, err2 = loadlib (libname, libopen);

		assert (init, (err1 or '')..(err2 or ''));

		DC():PrintDebug(" *** Load successfull! ***");

		init ();

	else
		DC():PrintDebug(" *** ERROR: loadlib missing! ***");
	end
else
	DC():PrintDebug("*** WARNING: luasql already loaded! ***");
end